<template>
  <div class="left-bar">
    <router-link :to="{name: 'user', params: {username: 'zhangsan'}}">User / 张三</router-link>
    <router-link :to="{name: 'user', params: {username: 'lisi'}}">User / 李四</router-link>
    <router-link to="/foo">Go to Foo</router-link>
    <router-link to="/bar">Go to Bar</router-link>
    <router-link to="/todo">Todo</router-link>
  </div>
</template>

<script>
export default {
  name: "LeftBar"
}
</script>

<style lang="scss">
$main-color: #913e1b;
$header-h: 80px;
$white-color: #fff;
$wrapper_h: calc(100vh - 80px);

.wrapper {
  height: $wrapper_h;
  display: flex;

  .left-bar {
    width: 150px;
    background-color: $main-color;
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
    border-top: 5px solid #2c3e50;

    a {
      display: block;
      height: 38px;
      line-height: 38px;
      color: $white-color;
      padding-left: 20px;
      font-size: 20px;
      border-bottom: 1px solid #f0b1b1;
    }
  }

  main {
    flex: 1;
    box-sizing: border-box;
    border: 1px solid #333333;
    background-color: #f5f5f5;
    margin: 10px 0 0 10px;
    overflow-y: auto;
  }
}
</style>